<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="page" value="#{pcPurchaseOrderItemBean.page}"/>
		<f:event type="preRenderView" listener="#{pcPurchaseOrderItemBean.paginate}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Search Pc Purchase Order Item entities"/>

	<ui:define name="header">
		Pc Purchase Order Item
	</ui:define>

	<ui:define name="subheader">
		Search Pc Purchase Order Item entities
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="search">
			<f:validateBean disabled="true">
				<h:panelGroup styleClass="search">

					<h:panelGrid columnClasses="label,component,required" columns="3">
						<h:outputLabel for="pcPurchaseOrderItemBeanExampleSysUom" value="Sys Uom:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{sysUomBean.converter}" id="pcPurchaseOrderItemBeanExampleSysUom" value="#{pcPurchaseOrderItemBean.example.sysUom}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysUomBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="pcPurchaseOrderItemBeanExampleSysUom" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="pcPurchaseOrderItemBeanExampleMmItem" value="Mm Item:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{mmItemBean.converter}" id="pcPurchaseOrderItemBeanExampleMmItem" value="#{pcPurchaseOrderItemBean.example.mmItem}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmItemBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="pcPurchaseOrderItemBeanExampleMmItem" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="pcPurchaseOrderItemBeanExamplePcPurchaseOrder" value="Pc Purchase Order:"/>
						<h:panelGroup>
							<h:selectOneMenu converter="#{pcPurchaseOrderBean.converter}" id="pcPurchaseOrderItemBeanExamplePcPurchaseOrder" value="#{pcPurchaseOrderItemBean.example.pcPurchaseOrder}">
								<f:selectItem/>
								<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{pcPurchaseOrderBean.all}" var="_item"/>
							</h:selectOneMenu>
							<h:message for="pcPurchaseOrderItemBeanExamplePcPurchaseOrder" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="pcPurchaseOrderItemBeanExamplePoSupplierItemCode" value="Po Supplier Item Code:"/>
						<h:panelGroup>
							<h:inputText id="pcPurchaseOrderItemBeanExamplePoSupplierItemCode" maxLength="50" value="#{pcPurchaseOrderItemBean.example.poSupplierItemCode}"/>
							<h:message for="pcPurchaseOrderItemBeanExamplePoSupplierItemCode" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
						<h:outputLabel for="pcPurchaseOrderItemBeanExamplePoItemCode" value="Po Item Code:"/>
						<h:panelGroup>
							<h:inputText id="pcPurchaseOrderItemBeanExamplePoItemCode" maxLength="50" value="#{pcPurchaseOrderItemBean.example.poItemCode}"/>
							<h:message for="pcPurchaseOrderItemBeanExamplePoItemCode" styleClass="error"/>
						</h:panelGroup>
						<h:outputText/>
					</h:panelGrid>
					<h:panelGroup styleClass="buttons">
						<h:commandLink value="Search" action="#{pcPurchaseOrderItemBean.search}" styleClass="btn btn-primary"/>
						<h:commandLink value="Create New" action="#{pcPurchaseOrderItemBean.create}" styleClass="btn btn-primary"/>
					</h:panelGroup>
				</h:panelGroup>
			</f:validateBean>
			
			<h:dataTable id="pcPurchaseOrderItemBeanPageItems" styleClass="data-table" value="#{pcPurchaseOrderItemBean.pageItems}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Qty"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPoQty" value="#{_item.poQty}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Ppu"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPoPpu" value="#{_item.poPpu}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Status Inc Vat"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPoStatusIncVat" value="#{_item.poStatusIncVat}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Vat Perc Val"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPoVatPercVal" value="#{_item.poVatPercVal}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Vat Val"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPoVatVal" value="#{_item.poVatVal}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<ui:include src="/resources/scaffold/paginator.xhtml">
				<ui:param name="paginatorBean" value="#{pcPurchaseOrderItemBean}"/>
			</ui:include>
		</h:form>
			
	</ui:define>

</ui:composition>
